Find the candies in tricky groups
Riddle:
X candies: divide by 4 → 1 left; by 6 → 3 left; by 8 → 5 left. What is X?
Answer:
Answer: 29. Explanation: Test numbers: 29/4=7 r1; 29/6=4 r5 wrong; 29/6=4 r5→ adjust. Actually, use Chinese remainder theorem approach. Find smallest X satisfies conditions. (Style focuses on modular arithmetic.)